package com.company.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.project.command.supplier.SupplierListCommand;
import com.company.project.entity.supplier.Supplier;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Select;


public interface SupplierMapper extends BaseMapper<Supplier> {

    /**
     * 根据code（编码）查询供应商
     * @param code
     * @return
     */
    @Select(value = "select * from supplier where code= #{code, jdbcType=VARCHAR}?")
    Supplier selectByCode(@Param(value = "code")String code);

}
